﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class employee
    {
        private int jobnumber; 
        private string jobname;
        private string departinformation;
       

        public int Jobnumber 
        {
            get { return this.jobnumber; }
            set { this.jobnumber = value; }
        }

        public string Jobname 
        {
            get { return this.jobname; }
            set { this.jobname = value; }
        }

        public string Departinformation 
        {
            get { return this.departinformation; }
            set { this.departinformation = value; }
    }

        public void A()
        {
            Console.WriteLine("我的工号是{0}", this.jobnumber);
            Console.WriteLine("我叫{0}", this.jobname);
            Console.WriteLine("我所在的部门是{0}",this.departinformation);
        }

        public employee(int jobnumber, string jobname, string departinformation)
        {
            this.Jobnumber = jobnumber;
            this.Jobname = jobname;
            this.Departinformation = departinformation;
        }
        public employee()
        { 
        }

    }
}
